Socket
Socket
Sign inDemoInstall

@zendeskgarden/react-modals

Package Overview
Dependencies
100
Maintainers
1
Versions
250
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @zendeskgarden/react-modals

Components relating to modals in the Garden Design System


Version published
Weekly downloads
3.5K
decreased by-33.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@zendeskgarden/react-modals npm version

This package includes components relating to modals in the Garden Design System.

Installation

npm install @zendeskgarden/react-modals

# Peer Dependencies - Also Required
npm install react react-dom prop-types styled-components @zendeskgarden/react-theming

Usage

/**
 * Include modal styling at the root of your application
 */
import '@zendeskgarden/react-modals/dist/styles.css';

import { ThemeProvider } from '@zendeskgarden/react-theming';
import { Modal, Header, Body, Footer, FooterItem, Close } from '@zendeskgarden/react-modals';
import { Button } from '@zendeskgarden/react-buttons';

/**
 * Place a `ThemeProvider` at the root of your React application
 */
<ThemeProvider>
  <Modal onClose={() => alert('modal closing')}>
    <Header>Example Header</Header>
    <Body>Some content</Body>
    <Footer>
      <FooterItem>
        <Button basic>Cancel</Button>
      </FooterItem>
      <FooterItem>
        <Button primary>Confirm</Button>
      </FooterItem>
    </Footer>
    <Close aria-label="Close modal" />
  </Modal>
</ThemeProvider>;

Keywords

FAQs

Last updated on 05 Dec 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc